package com.navinfo.platform.trip.common.arithmetic.var;

import com.navinfo.platform.trip.common.arithmetic.SpeedOver;
import com.navinfo.platform.trip.common.arithmetic.SpeedOver_DF;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 超速算法的统计变量<br/>
 * {@link SpeedOver}<br/>
 * {@link SpeedOver_DF}<br/>
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class VarSpeedOver extends VarCommonNumber {

    /**
     * 前一个点是否超速
     */
    private boolean preOverSpeed;


    @Override
    public String toString() {
        return "VarSpeedOver{" +
                "number=" + getNumber() +
                ", mileage=" + getMileage() +
                ", oil=" + getFuel() +
                ", timeMs=" + getDuration() +
                ", preOverSpeed=" + preOverSpeed +
                '}';
    }
}
